set(ROUTE_GUIDE_SERVER_SRCS helper.cpp route_guide_server.cpp)
set(HELLOWORLD_SERVER_SRCS hello_server.cpp)
set(HELLOWORLD_CLIENT_SRCS hello_client.cpp)


add_executable(route_guide_server ${ROUTE_GUIDE_SERVER_SRCS})
add_executable(hello_server ${HELLOWORLD_SERVER_SRCS})
add_executable(hello_client ${HELLOWORLD_CLIENT_SRCS})


foreach (_target
        route_guide_server
        hello_server
        hello_client)
    target_link_libraries(${_target}
            proto_gen
            absl::check
            absl::flags
            absl::flags_parse
            absl::log
            ${_REFLECTION}
            ${_GRPC_GRPCPP}
            ${_PROTOBUF_LIBPROTOBUF})
endforeach ()


